//
//  KYLittleClassView.m
//  kuaiyi
//
//  Created by 杨亮 on 16/3/18.
//  Copyright © 2016年 kuaiyi. All rights reserved.
//

#import "KYLittleClassView.h"
#import <Masonry.h>

@interface KYLittleClassView ()
@property (weak, nonatomic) IBOutlet UILabel *labelOne;
@property (weak, nonatomic) IBOutlet UILabel *labelTwo;
@property (weak, nonatomic) IBOutlet UILabel *labelThree;
@property (weak, nonatomic) IBOutlet UILabel *lebelFour;
@property (weak, nonatomic) IBOutlet UILabel *labelFive;
@property (weak, nonatomic) IBOutlet UILabel *labelSix;

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UIImageView *iconImage;

@end
@implementation KYLittleClassView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self = [[[NSBundle mainBundle]loadNibNamed:@"KYLittleClassView" owner:nil options:0]lastObject];
        
    }
    return self;
}
-(void)setDiseaseClassModel:(KYDiseaseClassModel *)diseaseClassModel{
    _diseaseClassModel = diseaseClassModel;
    self.labelOne.text = diseaseClassModel.classArray[0];
    self.labelTwo.text = diseaseClassModel.classArray[1];
    self.labelThree.text = diseaseClassModel.classArray[2];
    self.lebelFour.text = diseaseClassModel.classArray[3];
    self.labelFive.text = diseaseClassModel.classArray[4];
    self.labelSix.text = diseaseClassModel.classArray[5];
    
    self.nameLabel.text = diseaseClassModel.name;
    self.iconImage.image = [UIImage imageNamed:diseaseClassModel.icon];
}

@end
